package com.diy.sigmund.diyorder.entity.enumerate;

import com.diy.sigmund.diycommon.entity.enumerate.ResponseEnum;
import java.util.Objects;

/**
 * 订单状态
 *
 * @author ylm-sigmund
 * @since 2021/8/20 10:14
 */
public enum OrderStatusEnum {
    /** 0 成功；1 下单中；2 失败 */
    SUCCESS("0", "成功"),
    /** 0 成功；1 下单中；2 失败 */
    ORDER_NOW("1", "下单中"),
    /** 0 成功；1 下单中；2 失败 */
    FAIL("1", "失败"),
    ;
    private final String code;
    private final String msg;

    OrderStatusEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
